import math as mt

def math(my_input):
    n = 0
    p = []
    Q = []
    for i in my_input:
        n += 1
    for j in my_input:
        p.append((n + 1)*j)
    a = [mt.floor(item) for item in p]
    for k in range(3):
        Q.append(d[a[k]] + (p[k] - a[k]) * (d[a[k]+1] - d[a[k]]))
    return Q

t = [0.25, 0.5, 0.75]
i = [1, 2, 3]
my_input = list(map(float, input("输入一组数据：").split()))
d = my_input.copy()
result = math(my_input)
print(result)